package com.example.cdpbookstore.pojo.entity;

import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;


@Data
public class Staff implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 员工ID(UUID)
     */
    private String id;

    /**
     * 用户名(唯一)
     */
    private String username;

    /**
     * 密码(BCrypt)
     */
    private String password;

    /**
     * 角色(admin)
     */
    private String role;

    /**
     * 状态(1启用，0禁用。默认1)
     */
    private Integer state;

    /**
     * 创建时间
     */
    private LocalDateTime creationTime;

    /**
     * 修改时间
     */
    private LocalDateTime updateTime;


}
